package com.study.model.pojo.HRpojo;

import java.io.Serializable;
import java.util.List;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonIgnore;


/**
 * The persistent class for the resume_tab database table.
 * 
 */
@Entity
@Table(name="resume_tab")
@NamedQuery(name="ResumeTab.findAll", query="SELECT r FROM ResumeTab r")
public class ResumeTab implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int resid;

	private String resadd;

	private String rescardid;

	private int reseducation;

	private String resedusch;

	private String resemail;

	private String resname;

	private String resremark;

	private int ressex;

	private int resstate;

	private String restel;

	//bi-directional many-to-one association to InterviewTab
	@JsonIgnore
	@OneToMany(mappedBy="resumeTab")
	private List<InterviewTab> interviewTabs;

	//bi-directional many-to-one association to AppTab
	@ManyToOne
	@JoinColumn(name="appid")
	private AppTab appTab;

	public ResumeTab() {
	}

	public int getResid() {
		return this.resid;
	}

	public void setResid(int resid) {
		this.resid = resid;
	}

	public String getResadd() {
		return this.resadd;
	}

	public void setResadd(String resadd) {
		this.resadd = resadd;
	}

	public String getRescardid() {
		return this.rescardid;
	}

	public void setRescardid(String rescardid) {
		this.rescardid = rescardid;
	}

	public int getReseducation() {
		return this.reseducation;
	}

	public void setReseducation(int reseducation) {
		this.reseducation = reseducation;
	}

	public String getResedusch() {
		return this.resedusch;
	}

	public void setResedusch(String resedusch) {
		this.resedusch = resedusch;
	}

	public String getResemail() {
		return this.resemail;
	}

	public void setResemail(String resemail) {
		this.resemail = resemail;
	}

	public String getResname() {
		return this.resname;
	}

	public void setResname(String resname) {
		this.resname = resname;
	}

	public String getResremark() {
		return this.resremark;
	}

	public void setResremark(String resremark) {
		this.resremark = resremark;
	}

	public int getRessex() {
		return this.ressex;
	}

	public void setRessex(int ressex) {
		this.ressex = ressex;
	}

	public int getResstate() {
		return this.resstate;
	}

	public void setResstate(int resstate) {
		this.resstate = resstate;
	}

	public String getRestel() {
		return this.restel;
	}

	public void setRestel(String restel) {
		this.restel = restel;
	}

	public List<InterviewTab> getInterviewTabs() {
		return this.interviewTabs;
	}

	public void setInterviewTabs(List<InterviewTab> interviewTabs) {
		this.interviewTabs = interviewTabs;
	}

	public InterviewTab addInterviewTab(InterviewTab interviewTab) {
		getInterviewTabs().add(interviewTab);
		interviewTab.setResumeTab(this);

		return interviewTab;
	}

	public InterviewTab removeInterviewTab(InterviewTab interviewTab) {
		getInterviewTabs().remove(interviewTab);
		interviewTab.setResumeTab(null);

		return interviewTab;
	}

	public AppTab getAppTab() {
		return this.appTab;
	}

	public void setAppTab(AppTab appTab) {
		this.appTab = appTab;
	}

	@Override
	public String toString() {
		return "ResumeTab [resadd=" + resadd + ", rescardid=" + rescardid + ", reseducation=" + reseducation
				+ ", resedusch=" + resedusch + ", resemail=" + resemail + ", resname=" + resname + ", resremark="
				+ resremark + ", ressex=" + ressex + ", resstate=" + resstate + ", restel=" + restel + "]";
	}
	
	

}